setRemainingBasis

fun setRemainingBasis(averageCost: Double, asofDate: Int)

Compute the remaining basis for this buy transaction, given a particular average cost.

Parameters

averageCost

The current average cost, computed for a particular sale transaction.

asofDate

The date the remaining basis is valid for. The shares remaining are brought forward to this date, adjusting for splits.